package com.xunji.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xunji.user.util.UUIDUtil;
import lombok.Data;

@TableName(value = "t_lp_user_role")
@Data
public class UserRole {
    private String id;
    private String userId;
    private String roleId;

    public static UserRole getInstance(String userId,String roleId){
        UserRole userRole = new UserRole();
        userRole.setId(UUIDUtil.getUUID());
        userRole.setUserId(userId);
        userRole.setRoleId(roleId);
        return userRole;
    }
}
